#include"ExpressionTree.h"
#include<iostream>

using namespace std;

int main(void) {

	expressionTree tree("1#2.2#1#*+3#-2#3#*4#*+");
	string str;
	tree.getInfixExpression(str);
	cout << "input  : " << "1#2.2#1#*+3#-2#3#*4#*+" << endl << endl;
	cout << "prefix : " << tree.getPrefixExpression() << endl << endl;
	cout << "infix  : " << str << endl << endl;
	cout << "postfix: " << tree.getPostfixExpression() << endl << endl;

	tree.destruct();
	system("pause");
	return 0;
}